﻿using System.Collections.Generic;

namespace AbstractFactory.Factory
{
    public abstract class Tray : Item
    {
        protected List<Item> tray;

        public Tray(string caption)
            : base(caption)
        {
            this.tray = new List<Item>();
        }

        public void Add(Item item)
        {
            tray.Add(item);
        }
    }
}
